package com.weic.easycache.exception;

public class HttpStatusException extends Exception {
	private static final long serialVersionUID = -4651760857638875716L;
	private int code;
	
	public HttpStatusException(int code, String message) {
		super(message);
		this.code = code;
	}
	
	public int getCode() {
		return code;
	}
	
	@Override
	public String getLocalizedMessage() {
		return getMessage()+":"+code;
	}
}
